<template>
  <div class="container">
    <data-view
      propViewKey="hospital_material_crud"
      propViewForm="base/hospital_material/detail.vue"
      :propIsTdesign="true"
      :propFilterBtnByData="propFilterBtnByData"
    />
  </div>
</template>

<script>
export default {
  help: '医院商品管理-列表',
  data() {
    return {
    }
  },
  components: {
  },
  methods: {
    // 按钮过滤
    propFilterBtnByData(button, data) {
      let btnCodeList2 = []
      btnCodeList2.push(this.constCommon.btnKeyMap.formTop.save,this.constCommon.btnKeyMap.tableRight.edit)
      if (
        !data.flagEnabledMaterialEdit
        && (btnCodeList2.includes(button.key) || btnCodeList2.includes(button.code))
      ) {
        return false
      }

      return true
    }
  }
}
</script>
